body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #18191a;
  color: #e4e6ea;
  line-height: 1.4;
}


.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  padding: 20px 16px;
}


.sidebar {
  width: 280px;
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.leftsidebar {
  order: 1;
}

.rightsidebar {
  order: 3;
}

.sidebarsection {
  background: linear-gradient(135deg, #242526 0%, #1c1e21 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #3a3b3c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebarsection h3 {
  margin: 0 0 12px 0;
  color: #e4e6ea;
  font-size: 16px;
  font-weight: 600;
}


.trending {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending li {
  padding: 8px 0;
  border-bottom: 1px solid #3a3b3c;
  cursor: pointer;
  transition: background 0.2s ease;
}

.trending li:last-child {
  border-bottom: none;
}

.trending li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.hashtag {
  color: #2374e1;
  font-weight: 500;
}

.trending small {
  color: #b0b3b8;
  font-size: 12px;
}


.quicklinks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quicklinks li {
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 500;
  background: #3a3b3c;
  color: #e4e6ea;
  margin-bottom: 8px;
  border: 1px solid #555;
}

.quicklinks li:hover {
  background: #4a4b4c;
}


.top {
  background: #242526;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #3e4042;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top h1 {
  color: #2374e1;
  font-size: 26px;
  font-weight: bold;
  margin: 0;
}

.icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navitem {
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #e4e6ea;
  border: 1px solid transparent;
}

.navitem:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(35, 116, 225, 0.3);
}

.pic {
  width: 36px;
  height: 36px;
  background: #2374e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pic:hover {
  background: #1a5fb8;
}


.main {
  flex: 1;
  order: 2;
  max-width: 680px;
}

.box {
  background: linear-gradient(135deg, #242526 0%, #1c1e21 100%);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #3a3b3c;
  transition: box-shadow 0.3s ease;
}

.box:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.person {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.face {
  width: 40px;
  height: 40px;
  background: #3a3b3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 20px;
}


.person .info {
  position: relative;
}

.reply {
  position: relative;
}

.userhover {
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.userhover:hover {
  color: #2374e1;
}

.profilecard {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: linear-gradient(135deg, #242526 0%, #1c1e21 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid #3a3b3c;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.img.userhover:hover .profilecard,
.img .profilecard:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.profileheader {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.profilepic {
  width: 60px;
  height: 60px;
  background: #3a3b3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-right: 12px;
}

.profileinfo h4 {
  margin: 0 0 4px 0;
  color: #e4e6ea;
  font-size: 18px;
  font-weight: 600;
}

.profilehandle {
  color: #b0b3b8;
  font-size: 14px;
  margin: 0 0 8px 0;
}

.profilebio {
  color: #e4e6ea;
  font-size: 14px;
  margin: 0;
  line-height: 1.3;
}

.profilestats {
  display: flex;
  justify-content: space-around;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid #3a3b3c;
  border-bottom: 1px solid #3a3b3c;
}

.profilestats .stat {
  text-align: center;
}

.profilestats .stat strong {
  display: block;
  font-weight: bold;
  color: #e4e6ea;
  font-size: 18px;
  margin-bottom: 4px;
}

.profilestats .stat span {
  color: #b0b3b8;
  font-size: 12px;
}

.profilerecent {
  margin: 16px 0;
}

.profilerecent h5 {
  margin: 0 0 8px 0;
  color: #e4e6ea;
  font-size: 14px;
  font-weight: 600;
}

.profilerecent p {
  color: #b0b3b8;
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

.profilefollowbtn {
  width: 100%;
  background: #2374e1;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.profilefollowbtn:hover {
  background: #1a5fb8;
}

.privateaccount {
  width: 100%;
  background: #3a3b3c;
  color: #b0b3b8;
  border: 1px solid #5a5b5c;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: not-allowed;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #e4e6ea;
}

.time {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #b0b3b8;
}


.text h2 {
  font-size: 18px;
  margin: 0 0 12px 0;
  color: #e4e6ea;
}

.text p {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #e4e6ea;
}

.text a {
  color: #2374e1;
  text-decoration: none;
}

.text a:hover {
  text-decoration: underline;
}


.stats {
  padding: 8px 0;
  border-bottom: 1px solid #3e4042;
  font-size: 13px;
  color: #b0b3b8;
  display: flex;
  gap: 16px;
}


.btns {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #3e4042;
}

.btn {
  flex: 1;
  background: none;
  border: none;
  color: #b0b3b8;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: #3a3b3c;
}


.replies {
  margin-top: 12px;
}

.reply {
  display: flex;
  margin-bottom: 12px;
}

.img {
  width: 32px;
  height: 32px;
  background: #3a3b3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 16px;
  flex-shrink: 0;
}

.msg {
  background: #3a3b3c;
  border-radius: 16px;
  padding: 8px 12px;
  flex: 1;
}

.msg strong {
  font-size: 13px;
  color: #e4e6ea;
}

.msg p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: #e4e6ea;
}



.adsection {
  background: linear-gradient(135deg, #242526 0%, #1c1e21 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #3a3b3c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vnad h3 {
  margin: 0 0 12px 0;
  color: #e4e6ea;
  font-size: 16px;
  font-weight: 600;
}

.adcontent {
  text-align: center;
}

.adimagelink {
  display: block;
}

.adimage {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adimage:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.groupsuggestions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.groupitem {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.groupitem:hover {
  background: rgba(255, 255, 255, 0.1);
}

.grouppic {
  width: 40px;
  height: 40px;
  background: #3a3b3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 20px;
}

.groupinfo {
  flex: 1;
}

.groupinfo strong {
  color: #e4e6ea;
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.groupinfo small {
  color: #b0b3b8;
  font-size: 12px;
}


@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    order: initial;
  }
  
  .leftsidebar {
    order: 1;
  }
  
  .main {
    order: 2;
  }
  
  .rightsidebar {
    order: 3;
  }
}


.peoplesuggestions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.personsuggestion {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.personsuggestion:hover {
  background: rgba(255, 255, 255, 0.1);
}

.suggestionpic {
  width: 40px;
  height: 40px;
  background: #3a3b3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 20px;
}

.personsuggestion .suggestioninfo {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.personsuggestion .suggestioninfo strong {
  color: #e4e6ea;
  font-size: 14px;
  font-weight: 600;
}

.followbtn {
  background: #2374e1;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.followbtn:hover {
  background: #1a5fb8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(35, 116, 225, 0.3);
}


.commentmodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.commentmodal.show {
  display: flex;
}

.commentbox {
  background: linear-gradient(135deg, #242526 0%, #1c1e21 100%);
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  border: 1px solid #3a3b3c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.commentbox h3 {
  margin: 0 0 16px 0;
  color: #e4e6ea;
  font-size: 18px;
  font-weight: 600;
}

.commenttextarea {
  width: 100%;
  min-height: 120px;
  background: #3a3b3c;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 12px;
  color: #e4e6ea;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  box-sizing: border-box;
}

.commenttextarea:focus {
  border-color: #2374e1;
  box-shadow: 0 0 0 2px rgba(35, 116, 225, 0.2);
}

.commentbuttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
}

.commentbtn {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancelbtn {
  background: rgba(255, 255, 255, 0.1);
  color: #e4e6ea;
}

.cancelbtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sendbtn {
  background: #2374e1;
  color: white;
}

.sendbtn:hover {
  background: #1a5fb8;
}


.notificationbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(81, 110, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 0;
  z-index: 1000;
  overflow: hidden;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.notificationcontent {
  white-space: nowrap;
  animation: scrollleft 32s linear infinite;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes scrollleft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
